<%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2022-02-18
  Time: 17:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <%
     // session.getId();
     // session.invalidate();//失效
      out.print("session id:"+session.getId()+"<br>");
      out.print("session 创建时间:"+session.getCreationTime()+"<br>");
      out.print("session 最后一次访问时间:"+session.getLastAccessedTime()+"<br>");
      out.print("有效时间："+session.getMaxInactiveInterval());
  %>
</body>
</html>
